package chai.ning.date;

import java.util.Date;

public class DateTest2 {

	public static void main(String[] args) {
		Date d = new Date();
		System.out.println( d );	//Tue Sep 01 10:51:22 CST 2020
		
		long f = d.getTime();
		System.out.println( f );	// 1598928682631
		
		final long day = 1000L * 60 * 60 * 24 ;	//一天
		
		d.setTime( f + day);
		System.out.println( d );
		
		f = d.getTime();
		d.setTime( f + day);
		System.out.println( d );
	}
	
}
